package com.example.shoppingmall.dao;

import com.example.shoppingmall.pojo.Examine;
import com.example.shoppingmall.pojo.Withdrawal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface WithdrawalMapper {

    //多条件查询+分页
    public List<Withdrawal> getWithd(@Param("userPhone") String userPhone, @Param("ex_id") Integer ex_id,
                                     @Param("pageNo") Integer pageNo, @Param("pageNum") Integer pageNum);

    //查询总条数
    public int total(@Param("userPhone") String userPhone, @Param("ex_id") Integer ex_id);

    //修改
    public int update(Withdrawal withdrawal);

    //查询审核List
    public List<Examine> exList();

    //查询详情
    public Withdrawal getWithdrawal(@Param("id") Integer id);

}
